package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;

import com.qidianit.mes.pojo.pro.Workflow;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface WorkflowService {
    Result<PageInfo<Workflow>> selectList(Workflow workflow, int pageNum, int pageSize);

    Result<Workflow> selectByCode(String workflowCode);

    Result<Workflow> saveWorkflow(Workflow workflow);

    Result<Workflow> updateWorkflow(Workflow workflow);

    Result deleteById(Long id);

    Result batchDelete(Long[] ids);
}
